package cn.edu.ldu.util;

import lombok.Data;

import java.net.DatagramSocket;
import java.net.ServerSocket;
import java.net.SocketException;

public class Ports {

    private static DatagramSocket common;

    public static DatagramSocket getCommon() throws SocketException {
        return common == null ? common = new DatagramSocket() : common;
    }

}
